package com.spddr.pmos.jpa;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import cn.seqdata.jpa.AbstractPersistable;

@Entity
@Table(name = "reservoir_level_volume")
public class ReservoirLevelVolume extends AbstractPersistable<ReservoirLevelVolumeId> {
	private static final long serialVersionUID = 1L;

	private Double volume;

	public ReservoirLevelVolume() {
	}

	public ReservoirLevelVolume(long reservoir, BigDecimal waterLevel) {
		setId(new ReservoirLevelVolumeId(reservoir, waterLevel));
	}

	@Column(name = "volume", nullable = false)
	public Double getVolume() {
		return this.volume;
	}

	public void setVolume(Double volume) {
		this.volume = volume;
	}
}